<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            width: 200px;
            height: 200px;
            background-color: pink;
            border: 20px solid red;
            padding: 15px;
            box-sizing: content-box;
            /* 默认值，宽高不变 */
        }

        p {
            width: 200px;
            height: 200px;
            background-color: pink;
            border: 20px solid red;
            padding: 15px;
            box-sizing: border-box;
            /* CSS盒子模型，盒子的最终的大小就是width 200的大小 */
            /* 实际内容宽高不变，边框和内边距会挤压内容 */
        }
    </style>
</head>

<body>
    <div>小猪佩奇</div>
    <p>小猪佩奇</p>
</body>

</html>